Skip to content

properties: add properties prefix as filter/append#105

Merged
cowtowncoder merged 1 commit intoFasterXML:masterfrom
alonbl:properties-prefix
May 31, 2019
Merged

properties: add properties prefix as filter/append#105
cowtowncoder merged 1 commit intoFasterXML:masterfrom
alonbl:properties-prefix

Conversation

@alonbl
Copy link
Copy Markdown
Contributor

@alonbl alonbl commented Aug 31, 2018

Properties may contain multiple objects based on prefix, for example:

a.b.c.name =
a.b.c.id =
x.y.z.name =
x.y.z.color =

To read these formats a prefix should be used as a filter when reading and as
append when generating.

A new optional JavaPropsSchema::prefix() and JavaPropsSchema::withPrefix() are
added to control the behavior.

As each path component is an object, use of ObjectReader::withRootName has a
different meaning so schema property was used.

PR #100

Properties may contain multiple objects based on prefix, for example:

    a.b.c.name =
    a.b.c.id =
    x.y.z.name =
    x.y.z.color =

To read these formats a prefix should be used as a filter when reading and as
append when generating.

A new optional JavaPropsSchema::prefix() and JavaPropsSchema::withPrefix() are
added to control the behavior.

As each path component is an object, use of ObjectReader::withRootName has a
different meaning so schema property was used.

PR #100
@cowtowncoder
Copy link
Copy Markdown
Member

CLA received, will need to figure out how to merge in 2.10.

@cowtowncoder cowtowncoder merged commit 42a93e9 into FasterXML:master May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants